package com.mineplatform.dao;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;
import org.springframework.stereotype.Repository;

import com.mineplatform.domain.M_AppInfo;



@Repository
public class M_AppInfoDao extends M_BaseDao {

	public M_AppInfo findAppInfo() {
		DetachedCriteria crit = DetachedCriteria.forClass(M_AppInfo.class);
		List<?> list = super.getHibernateTemplate().findByCriteria(crit);
		if(list.size()>0){
			return (M_AppInfo)list.get(0);
		}else{
			return null;
		}
		
	}
	
}
